<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.console.servlets.content.coin.UpdateBInfo"%>
<%@page import="com.blockchain.console.servlets.content.coin.SearchBxx"%>
<%@page import="com.blockchain.console.service.trading.entity.XlbEntity"%>
<%@page import="com.sun.org.apache.bcel.internal.generic.ISUB"%>
<%@page import="com.blockchain.common.enums.IsPass"%>
<html>
<head>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<%
CURRENT_CATEGORY="NRGL";
CURRENT_SUB_CATEGORY="BXX";
PagingResult<XlbEntity>  xlbs= (PagingResult<XlbEntity>)request.getAttribute("xlbs");
XlbEntity[] xlbArray = xlbs.getItems();
%>
<body>
	<%@include file="/WEB-INF/include/header.jsp"%>
	<div class="w_main">
		<div class="main clearfix">
			<div class="wrap">
			<form action="<%=controller.getURI(request, SearchBxx.class) %>" method="post">
				<div class="r_main">
					<div class="home_main">
						<div class="box box1 mb15">
							<div class="atil">
                    		<h3>虚拟币管理</h3>
                  			</div>
						</div>
						<div class="box box1 mb15">
							<div class="clear"></div>
							<div class="con">
							<div class="admin_input admin_pb">
                                <p>中文名称：<input type="text" name="zwm" value="<%StringHelper.filterHTML(out, request.getParameter("zwm"));%>" class="yhgl_input mr5" /></p>
                       	    	<p>时间：<input type="text" name="start" readonly="readonly" id="datepicker1" class="yhgl_input date" />
                                <span class="pr10">至</span><input readonly="readonly" type="text" name="end" id="datepicker2" class="yhgl_input date" /></p>
						 		<div class="mt10">
						 			<input name="" type="submit" class="btn2 mr10" value="搜索" />
						 			<div class="clear"></div>
								</div>
						    </div>
						</div>
						</div>
						<div>
							<table width="100%" border="0" cellspacing="0" cellpadding="3" class="yhgl_table tc">
						<tr class="hsbg">
                          <td>ID</td>
                          <td>英文简称</td>
                          <td>中文名</td>
                          <td>图标</td>
                          <td>时间</td>
                          <td>操作</td>
                        </tr>
						<%
                        if (xlbArray != null) {for (int i =0;i<xlbArray.length;i++){XlbEntity x=xlbArray[i];if (x == null || x.id == 0) {continue;}
                        %>
                        <tr class="dhsbg">
                          <td><%=x.id%></td>
                          <td><%StringHelper.filterHTML(out, x.ywjc);%></td>
                          <td><%StringHelper.filterHTML(out, x.zwm);%></td>
                          <td><img style="width: 50px;height: 50px;" src="<%if(!StringHelper.isEmpty(x.tblj)){%><%=fileStore.getURL(x.tblj)%><%}%>"></td>
                          <td><%=TimestampParser.format(x.fbsj)%></td>
                         <td>
                          <%if (blockchainSession.isAccessableResource(UpdateBInfo.class)) {%>
                          	<span class="blue"><a href="<%=controller.getURI(request,UpdateBInfo.class)%>?id=<%=x.id%>" class="mr10">编辑</a></span>
                          <%}%>
                          </td>
						</tr>
								<%}}%>
							</table>
						</div>
							<%AbstractConsoleServlet.rendPagingResult(out, xlbs); %>
						<div class="box2 clearfix"></div>
					</div>
				</div>
				</form>
			</div>
			<%@include file="/WEB-INF/include/left.jsp" %>
		</div>
	</div>
	<%@include file="/WEB-INF/include/footer.jsp"%>
	<%@include file="/WEB-INF/include/script.jsp"%>
	<%@include file="/WEB-INF/include/datepicker.jsp"%>
	<script type="text/javascript">
		$(function() {
			$("#datepicker1").datepicker({inline: true});
		    $('#datepicker1').datepicker('option', {dateFormat:'yy-mm-dd'});
		    $("#datepicker2").datepicker({inline: true});
		    $('#datepicker2').datepicker('option', {dateFormat:'yy-mm-dd'});
		    $("#datepicker1").datepicker("setDate", "<%StringHelper.filterHTML(out, request.getParameter("start"));%>");
		    $("#datepicker2").datepicker("setDate", "<%StringHelper.filterHTML(out, request.getParameter("end"));%>");
		});
		
		function load(url)
		{
			if (!window.confirm("你确定删除吗？")) {
				return;
			}
			location.href=url;
		}	
		</script>
</body>
</html>